package payroll.trans;

import payroll.Employee;

public class ChangeAddressTransaction extends ChangeEmployeeTransaction {
    private String newAddress;
    public ChangeAddressTransaction(int empId, String newAddress) {
        super(empId);
        this.newAddress = newAddress;
    }

    @Override
    protected void dochange(Employee e) {
        e.setAddress(newAddress);

    }
}
